package com.adjy.pathbuilders.rendering.loading;

public class AnimationDescription {
	
	private String id;
	private String[] keyFrames;
	private float[] durations;
	private int pointer;
	
	public AnimationDescription(String id, int keyFrameCapacity) {
		this.keyFrames = new String[keyFrameCapacity];
		this.durations = new float[keyFrameCapacity];
		this.pointer = 0;
		this.id = id;
	}
	
	public boolean addKeyFrame(String keyFrame, float duration) {
		
		if (pointer < keyFrame.length()) {
			
			keyFrames[pointer] = keyFrame;
			durations[pointer] = duration;
			pointer++;
			
			return true;
		}
		return false;
	}
	
	public String getID() {
		return this.id;
	}
	
	public String[] getKeyFrames() {
		return keyFrames;
	}

	public float[] getDurations() {
		return durations;
	}
}
